<script type="javascript/text">
	var msg = '<?php echo $session->flash(); ?>';
	if (msq != '') document.write('<div class="success">' + msg + '</div>');
</script>
<table>
<?php foreach ($users as $user): ?>
<tr>
	<td><?php echo $user['User']['id']; ?></td>
	<td><?php echo $html->link($user['User']['username'], '/users/view/' . $user['User']['id']); ?></td>
	<td><?php echo $user['User']['email']; ?></td>
	<td><?php echo $user['User']['created']; ?></td>
	<td><?php echo $html->link('Delete', array('action' => 'delete', 'id' => $user['User']['id']), null, '删除用户？'); ?></td>
</tr>
<?php endforeach; ?>
</table>